<?php
$server = new \Swoole\Server('127.0.0.1','6063',SWOOLE_PROCESS,SWOOLE_SOCK_UDP);
//监听数据接受事件
$server->on('packet',function ($server,$data,$clientInfo)
{
    var_dump($clientInfo);
    $server->sendto($clientInfo['address'],$clientInfo['port'],"server:{$data}");
});
//启动服务
$server->start();